﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Share/MainMenu2.Master" AutoEventWireup="true"
    CodeBehind="fPO.aspx.cs" Inherits="MixScriptWeb.Jideco.MM.fPO" %>

<%@ Register Src="~/control/MixScriptTB.ascx" TagName="baseTextBox" TagPrefix="mix" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <script type="text/javascript">

        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        function EndRequestHandler(sender, args) {
            jQuery('.datepicker').datepicker({ dateFormat: 'dd-mm-yy' });
        }
    </script>
    <div style="padding-left: 10px;">
        <h2 class="jquery_tab">
            Purchase Order</h2>
        <asp:MultiView ID="MultiView1" runat="server">
            <asp:View ID=vwSelectPOtype runat="server">
                <br />
                <table style="width: 100%;" class="table-ui">
                    <tr>
                        <td style="width: 268px;">
                            PO Type
                        </td>
                        <td style="width: 5px;">
                            :
                        </td>
                        <td style="width: 1273px;">
                            <asp:DropDownList ID="ddlPOType" runat="server">
                                <asp:ListItem Value="1">Local Regular</asp:ListItem>
                                <asp:ListItem Value="2">IRREGULAR LOCAL</asp:ListItem>
                                <asp:ListItem Value="3">Oversease</asp:ListItem>
                                <asp:ListItem Value="4">E/O Requesting Sheet</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 268px;">
                            Suplier Code
                        </td>
                        <td style="width: 5px;">
                            :
                        </td>
                        <td style="width: 1273px;">
                            <mix:baseTextBox ID="txtSupCode" runat="server" AllowNull="True" isvalid="True" ReadOnly="True"
                                showFind="True" tooltip="This Field Cannot be empty" tWidht="200" />
                        </td>
                    </tr>
                </table>
                <br />
                <table style="width: 600px" class="table-ui">
                    <tr>
                        <td style="height: 26px;">
                            &nbsp;
                            <asp:Button ID="btnNext" runat="server" Text="Next" CssClass="button" Width="101px"
                                OnClick="btnNext_Click" />
                        </td>
                        <td style="height: 26px">
                            &nbsp;
                        </td>
                        <td style="height: 26px">
                            &nbsp;
                        </td>
                        <td style="height: 26px">
                            &nbsp;
                        </td>
                        <td style="height: 26px">
                            &nbsp;
                        </td>
                        <td style="height: 26px">
                            &nbsp;
                        </td>
                        <td style="height: 26px">
                        </td>
                        <td style="height: 26px">
                            &nbsp;
                        </td>
                        <td style="height: 26px; width: 4px;">
                            &nbsp;
                        </td>
                        <td style="height: 26px">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </asp:View>
            <asp:View ID=View1 runat="server">
                <br />
                <table style="width: 100%;" class="table-ui">
                    <tr>
                        <td style="width: 268px;">
                            Supplier Code
                        </td>
                        <td style="width: 5px;">
                            :
                        </td>
                        <td style="width: 1273px;">
                            <asp:Label ID="lblSupplier" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 268px;">
                            Date</td>
                        <td style="width: 5px;">
                            :
                        </td>
                        <td style="width: 1273px;">
                            <asp:TextBox ID="txtPODate" CssClass="input-small datepicker ritonli" 
                                runat="server" ontextchanged="txtPODate_TextChanged"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 268px;">
                            PO No
                        </td>
                        <td style="width: 5px;">
                            :
                        </td>
                        <td style="width: 1273px;">
                            <mix:baseTextBox ID="txtPONo" runat="server" AllowNull="True" isvalid="True" ReadOnly="True"
                                showFind="False" tooltip="This Field Cannot be empty" tWidht="200" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 268px;">
                            Payment Term
                        </td>
                        <td style="width: 5px;">
                            :
                        </td>
                        <td style="width: 1273px;">
                        <%--    <mix:baseTextBox ID="txtPayment" runat="server" AllowNull="True" isvalid="True" ReadOnly="True"
                                showFind="False" tooltip="This Field Cannot be empty" tWidht="200" />
--%>
                            <asp:DropDownList ID="txtPayment" runat="server">
                                <asp:ListItem Value="1">14 Day</asp:ListItem>
                                <asp:ListItem Value="2">30 Day</asp:ListItem>
                                <asp:ListItem Value="3">60 Day</asp:ListItem>
                                <asp:ListItem Value="4">90 Day</asp:ListItem>
                            </asp:DropDownList>

                        </td>
                    </tr>
                    <tr>
                        <td style="width: 268px;">
                            Attn
                        </td>
                        <td style="width: 5px;">
                            :
                        </td>
                        <td style="width: 1273px;">
                            <mix:baseTextBox ID="txtAttn" runat="server" AllowNull="True" isvalid="True" ReadOnly="True"
                                showFind="False" tooltip="This Field Cannot be empty" tWidht="200" UpperCase="True" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 268px;">
                            C.C.
                        </td>
                        <td style="width: 5px;">
                            :
                        </td>
                        <td style="width: 1273px;">
                            <mix:baseTextBox ID="txtCC" runat="server" AllowNull="True" isvalid="True" ReadOnly="True"
                                showFind="False" tooltip="This Field Cannot be empty" tWidht="200" UpperCase="True" />
                        </td>
                    </tr>

                     <tr>
                        <td style="width: 268px;">
                            Trade Term
                        </td>
                        <td style="width: 5px;">
                            :
                        </td>
                        <td style="width: 1273px;">
                           <asp:DropDownList ID="ddltterm" runat="server">
                                <asp:ListItem Value="1">CIF Jakarta</asp:ListItem>
                                <asp:ListItem Value="2">FOB</asp:ListItem>
                                <asp:ListItem Value="3">CNF Jakarta</asp:ListItem>
                            </asp:DropDownList>
                            <mix:baseTextBox ID="tfob" runat="server" AllowNull="True" isvalid="True" ReadOnly="True"
                                showFind="False" tooltip="This Field Cannot be empty" tWidht="200" UpperCase="True" Visible=false />
                        </td>
                    </tr>

                </table>
                <br />
                <asp:Panel ID="Panel1" runat="server" ScrollBars="Auto">
                    <asp:GridView ID="gvPO1" runat="server" CssClass="gridview" OnRowDataBound="gvdetail_RowDataBound"
                        Width="2200px" AutoGenerateColumns="False">
                        <AlternatingRowStyle CssClass="alt" />
                        <Columns>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                </HeaderTemplate>
                                <EditItemTemplate>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Image ID=imgSearch CssClass="search" ImageUrl="~/Styles/icons/search-24.png"
                                        runat="server" Height=18 Width=18 />
                                    <asp:ImageButton ID=imgDelete ImageUrl="~/Styles/images/24_x_false.png" Height=15
                                        Width=15 runat="server" OnClick="imgDelete_Click" />
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="38px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="PO. No.">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtPONO runat="server" Text='<%# Eval("slno") %>' CssClass="input-small"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Part. No">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtPartNo runat="server" Text='<%# Eval("nditno") %>' CssClass="input-small"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Parts Name">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtPartName runat="server" Text='<%# Eval("itnm") %>' CssClass="input-medium"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Unit Price">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtUoM runat="server" Text='<%# Eval("orup") %>' CssClass="input-small righttoleft"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Qty">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtQty runat="server" Text='<%# Eval("arndqt") %>' CssClass="input-small righttoleft"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Amount">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtAmount runat="server" Text='<%# Eval("tdam") %>' CssClass="input-small righttoleft"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Forecast">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtForecast1 runat="server" Text='<%# Eval("fc1") %>' CssClass="input-medium"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Forecast">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtForecast2 runat="server" Text='<%# Eval("fc2") %>' CssClass="input-medium"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Forecast">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtForecast3 runat="server" Text='<%# Eval("fc3") %>' CssClass="input-medium"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Forecast">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtForecast4 runat="server" Text='<%# Eval("fc4") %>' CssClass="input-medium"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EditRowStyle BorderColor="Silver" BorderStyle="Solid" />
                        <FooterStyle CssClass="ft" />
                        <PagerStyle BorderStyle="None" BorderWidth="0px" HorizontalAlign="Center" />
                    </asp:GridView>
                    <asp:GridView ID="gvPO2" runat="server" CssClass="gridview" OnRowDataBound="gvdetail_RowDataBound"
                        Width="1400px" AutoGenerateColumns="False">
                        <AlternatingRowStyle CssClass="alt" />
                        <Columns>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                </HeaderTemplate>
                                <EditItemTemplate>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Image ID=imgSearch CssClass="search" ImageUrl="~/Styles/icons/search-24.png"
                                        runat="server" Height=18 Width=18 />
                                    <asp:ImageButton ID=imgDelete ImageUrl="~/Styles/images/24_x_false.png" Height=15
                                        Width=15 runat="server" OnClick="imgDelete_Click" />
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="38px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="PO. No.">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtPONO runat="server" Text='<%# Eval("slno") %>' CssClass="input-small"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Part. No">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtPartNo runat="server" Text='<%# Eval("nditno") %>' CssClass="input-small"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Parts Name">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtPartName runat="server" Text='<%# Eval("itnm") %>' CssClass="input-medium"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Unit Price">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtUoM runat="server" Text='<%# Eval("orup") %>' CssClass="input-small righttoleft"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Qty">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtQty runat="server" Text='<%# Eval("arndqt") %>' CssClass="input-small righttoleft"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Amount">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtAmount runat="server" Text='<%# Eval("tdam") %>' CssClass="input-small righttoleft"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Remark">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtForecast1 runat="server" Text='<%# Eval("fc1") %>' CssClass="input-medium"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EditRowStyle BorderColor="Silver" BorderStyle="Solid" />
                        <FooterStyle CssClass="ft" />
                        <PagerStyle BorderStyle="None" BorderWidth="0px" HorizontalAlign="Center" />
                    </asp:GridView>
                    <asp:GridView ID="gvPO3" runat="server" CssClass="gridview" OnRowDataBound="gvdetail_RowDataBound"
                        Width="2200px" AutoGenerateColumns="False">
                        <AlternatingRowStyle CssClass="alt" />
                        <Columns>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                </HeaderTemplate>
                                <EditItemTemplate>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Image ID=imgSearch CssClass="search" ImageUrl="~/Styles/icons/search-24.png"
                                        runat="server" Height=18 Width=18 />
                                    <asp:ImageButton ID=imgDelete ImageUrl="~/Styles/images/24_x_false.png" Height=15
                                        Width=15 runat="server" OnClick="imgDelete_Click" />
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="38px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="PO. No.">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtPONO runat="server" Text='<%# Eval("slno") %>' CssClass="input-small"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Part. No">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtPartNo runat="server" Text='<%# Eval("nditno") %>' CssClass="input-small"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Parts Name">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtPartName runat="server" Text='<%# Eval("itnm") %>' CssClass="input-medium"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Unit Price">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtUoM runat="server" Text='<%# Eval("orup") %>' CssClass="input-small righttoleft"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Qty">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtQty runat="server" Text='<%# Eval("arndqt") %>' CssClass="input-small righttoleft"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Amount">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtAmount runat="server" Text='<%# Eval("tdam") %>' CssClass="input-small righttoleft"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="W1">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtForecast1 runat="server" Text='<%# Eval("fc1") %>' CssClass="input-medium"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="W2">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtForecast2 runat="server" Text='<%# Eval("fc2") %>' CssClass="input-medium"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="W3">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtForecast3 runat="server" Text='<%# Eval("fc3") %>' CssClass="input-medium"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="W4">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtForecast4 runat="server" Text='<%# Eval("fc4") %>' CssClass="input-medium"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EditRowStyle BorderColor="Silver" BorderStyle="Solid" />
                        <FooterStyle CssClass="ft" />
                        <PagerStyle BorderStyle="None" BorderWidth="0px" HorizontalAlign="Center" />
                    </asp:GridView>
                    <asp:GridView ID="gvPO4" runat="server" CssClass="gridview" OnRowDataBound="gvdetail_RowDataBound"
                        Width="2200px" AutoGenerateColumns="False">
                        <AlternatingRowStyle CssClass="alt" />
                        <Columns>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                </HeaderTemplate>
                                <EditItemTemplate>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Image ID=imgSearch CssClass="search" ImageUrl="~/Styles/icons/search-24.png"
                                        runat="server" Height=18 Width=18 />
                                    <asp:ImageButton ID=imgDelete ImageUrl="~/Styles/images/24_x_false.png" Height=15
                                        Width=15 runat="server" OnClick="imgDelete_Click" />
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="38px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="PO. No.">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtPONO runat="server" Text='<%# Eval("slno") %>' CssClass="input-small"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Part. No">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtPartNo runat="server" Text='<%# Eval("nditno") %>' CssClass="input-small"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Parts Name">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtPartName runat="server" Text='<%# Eval("itnm") %>' CssClass="input-medium"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Qty">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtQty runat="server" Text='<%# Eval("arndqt") %>' CssClass="input-small righttoleft"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="ETD">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtForecast1 runat="server" Text='<%# Eval("fc1") %>' CssClass="input-medium"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="ETA">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtForecast2 runat="server" Text='<%# Eval("fc2") %>' CssClass="input-medium"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Sea On Air">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtForecast3 runat="server" Text='<%# Eval("fc3") %>' CssClass="input-medium"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="ETD">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtForecast4 runat="server" Text='<%# Eval("frdvdt") %>' CssClass="input-medium"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Delivery Date">
                                <ItemTemplate>
                                    <asp:TextBox ID=txtUoM Text='<%# Eval("dldate") %>' runat="server" CssClass="input-small righttoleft"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EditRowStyle BorderColor="Silver" BorderStyle="Solid" />
                        <FooterStyle CssClass="ft" />
                        <PagerStyle BorderStyle="None" BorderWidth="0px" HorizontalAlign="Center" />
                    </asp:GridView>
                </asp:Panel>
                <table style="width: 600px" class="table-ui">
                    <tr>
                        <td style="height: 26px;">
                            &nbsp;
                            <asp:Button ID="btnAddNewRow" runat="server" Text="Add Row" CssClass="button" Width="101px"
                                OnClick="btnAddNewRow_Click" />
                        </td>
                        <td style="height: 26px">
                            &nbsp;
                        </td>
                        <td style="height: 26px">
                            &nbsp;
                        </td>
                        <td style="height: 26px">
                            &nbsp;
                        </td>
                        <td style="height: 26px">
                            &nbsp;
                        </td>
                        <td style="height: 26px">
                            &nbsp;
                        </td>
                        <td style="height: 26px">
                        </td>
                        <td style="height: 26px">
                            &nbsp;
                        </td>
                        <td style="height: 26px; width: 4px;">
                            &nbsp;
                        </td>
                        <td style="height: 26px">
                            &nbsp;
                        </td>
                    </tr>
                </table>
                <br />
                <br />
                <table style="width: 600px" class="table-ui">
                    <tr>
                        <td style="height: 26px;">
                            &nbsp;
                            <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="button" Width="101px"
                                OnClick="btnSave_Click" />
                        </td>
                        <td style="height: 26px">
                            &nbsp;
                        </td>
                        <td style="height: 26px">
                            <asp:Button ID="btnCreateDN" runat="server" Text="Create DN" CssClass="button" Width="101px"
                                Visible="False" />
                        </td>
                        <td style="height: 26px">
                            &nbsp;
                        </td>
                        <td style="height: 26px">
                            <asp:Button ID="btnCLear" runat="server" Text="Clear" CssClass="button" Width="101px"
                                Visible="False" />
                        </td>
                        <td style="height: 26px">
                            &nbsp;
                        </td>
                        <td style="height: 26px">
                        </td>
                        <td style="height: 26px">
                            &nbsp;
                        </td>
                        <td style="height: 26px; width: 4px;">
                            &nbsp;
                        </td>
                        <td style="height: 26px">
                            &nbsp;
                        </td>
                    </tr>
                </table>
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
            </asp:View>
            <asp:View ID=View2 runat="server">
                <br />
                <table style="width: 100%;" class="table-ui">
                    <tr>
                        <td style="width: 88px;">
                            DeliveryNo
                        </td>
                        <td style="width: 5px;">
                            :
                        </td>
                        <td style="width: 1273px;">
                            <asp:TextBox ID="txtDelNo" runat="server" CssClass="input-medium" Width="163px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 88px;">
                            Show PO NO
                        </td>
                        <td style="width: 5px;">
                            :
                        </td>
                        <td style="width: 1273px;">
                            <asp:DropDownList ID="ddlshowpo" runat="server">
                                <asp:ListItem Value="Y">Yes</asp:ListItem>
                                <asp:ListItem Value="N">No</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 88px;">
                            DN Type
                        </td>
                        <td style="width: 5px;">
                            :
                        </td>
                        <td style="width: 1273px;">
                            <asp:DropDownList ID="ddldntyp" runat="server" AutoPostBack="True">
                                <asp:ListItem Value="L">Local</asp:ListItem>
                                <asp:ListItem Value="E">Export</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 88px;">
                            <asp:Label ID="lblsnp" runat="server" Text="SNP"></asp:Label>
                        </td>
                        <td style="width: 5px;">
                            <asp:Label ID="lblttk" runat="server" Text=":"></asp:Label>
                        </td>
                        <td style="width: 1273px;">
                            <asp:TextBox ID="txtSNP" runat="server" CssClass="input-medium" Width="163px"></asp:TextBox>
                        </td>
                    </tr>
                </table>
                <asp:GridView ID="gvdn" runat="server" Width="100%" CssClass="gridview" AutoGenerateColumns="False">
                    <AlternatingRowStyle CssClass="alt" />
                    <Columns>
                        <asp:BoundField DataField="nmr" HeaderText="No" />
                        <asp:BoundField DataField="oaitno" HeaderText="Part No" />
                        <asp:BoundField DataField="itnm" HeaderText="Part Name" />
                        <asp:BoundField DataField="pkqt" HeaderText="QTY" />
                        <asp:BoundField DataField="unmsns" HeaderText="UoM" />
                    </Columns>
                    <EditRowStyle BorderColor="Silver" BorderStyle="Solid" />
                    <FooterStyle CssClass="ft" />
                    <PagerStyle BorderStyle="None" BorderWidth="0px" HorizontalAlign="Center" />
                </asp:GridView>
                <table style="width: 100%;" class="table-ui">
                    <tr>
                        <td style="width: 268px;">
                            <asp:Button ID="btnPrint" runat="server" Text="Print" CssClass="button" Width="101px" />
                        </td>
                        <td style="width: 5px;">
                            &nbsp;
                        </td>
                        <td style="width: 1273px;">
                            <asp:Button ID="btnBack" runat="server" CssClass="button" Text="Back" Width="101px" />
                        </td>
                    </tr>
                </table>
            </asp:View>
        </asp:MultiView>
        <br />
        <div id="pnldetail">
        </div>
    </div>
</asp:Content>
